package hotciv.variants;

import hotciv.common.GameImpl;
import hotciv.framework.Game;
import hotciv.framework.Player;
import hotciv.framework.WinnerStrategy;

public class EpsilonWinner implements WinnerStrategy
{

	@Override
	public Player getWinner( Game game )
	{
		GameImpl gamez = (GameImpl)game;
		
		if (gamez.getPlayerWins((Player.RED)) >= 3)
				return Player.RED;
		else if (gamez.getPlayerWins((Player.BLUE)) >= 3)
				return Player.BLUE;
		else 
			return null;
	}
}	